var audioFin = false;
var imgFin = false;
var firTouch = false;
var firswitchAuido = false;
var baseUrl = './img/',
	imgLoader = new PxLoader();
var audioPlayer = document.getElementById('audioMain');

// audio load
$('.audio-main').append(strAudio);  //source append

// audioPlayer.load();
// audioPlayer.addEventListener("canplay", function()
// 	{
// 		audioFin = true;
// 	}
// );
// setTimeout(function(){
// 	audioFin = (audioFin === true ? audioFin : !audioFin);
// },3000);    // ios  wechat 无法识别canplay
for(var i=0; i < imgArr.length; i++) {
	var pxImage = new PxLoaderImage(baseUrl + imgArr[i]);
	pxImage.imageNumber = i + 1;

	imgLoader.add(pxImage);
}
imgLoader.addCompletionListener(function(e){
	imgFin = true;

});
imgLoader.start(pxImage);
